<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>推送测试</title>
</head>
<body>
	<form id="myForm" action="/notification/remind_test.action"
		enctype="application/x-www-form-urlencoded">
		<table>
			<tr>
				<td>alias:</td>
				<td><input name="alias" type="text"></td>
			</tr>
			<tr>
				<td></td>
				<td><input type="checkbox" name="remind_type"
					value="my_message">我/我的消息(my_message)
				</td>
			</tr>
			<tr>
				<td></td>
				<td><input type="checkbox" name="remind_type"
					value="my_coupon">我/我的优惠券(my_coupon)
				</td>
			</tr>
			<tr> 
				<td></td>
				<td><input type="checkbox" name="remind_type"
					value="my_auth">我/认证(my_auth)</td>
			</tr>
			<tr>
				<td></td>
				<td><input type="checkbox" name="remind_type"
					value="order_a_pay">我/订单/待支付(order_a_pay)
				</td>
			</tr>

			<tr>
				<td></td>
				<td><input type="checkbox" name="remind_type"
					value="order_a_rec">我/订单/待收货(order_a_rec)
				</td>
			</tr>
			<tr>
				<td></td>
				<td><input type="checkbox" name="remind_type"
					value="order_a_rev">我/订单/待评价(order_a_rev)
				</td>
			</tr>

			<tr>
				<td></td>
				<td><input type="checkbox" name="remind_type"
					value="order_ref">我/订单/退货(order_ref)
				</td>
			</tr>
			<tr>
				<td>value:</td>
				<td><input name="value" type="number"></td>
			</tr>
			<tr>
				<td>msg_content(必填)</td>
				<td><textarea name="msg_content" rows="7" cols="50"></textarea></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit"></td>
			</tr>
		</table>
	</form>
	<div id="message" style="margin: 50px;"></div>
	<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
	<script
		src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.2.1/jquery.form.min.js"></script>
	<script type="text/javascript">
		$(function() {
			$('#myForm').ajaxForm({
				beforeSubmit : function() {
					$("#message").html("");
				},
				success : function showResponse(responseText) {
					$("#message").html(responseText);
				}
			});
		});
	</script>
</body>
</html>